package com.example.commandpattern.entity;

/**
 * @author ash
 * @description
 * @create 2023/2/22  22:08:29
 * @className Invoker
 * @verson 1.0.0
 */
public class Invoker {

    private Command command;

    public void setCommand(Command command) {
        this.command = command;
    }

    public void executeCommand(){
        command.execute();
    }
}
